package com.dash.pojo;

import java.util.Date;

public class Video {

	/*
	 * String srcPath,int userId,String title,int segmentTotal, String
	 * segmentFileName,String date
	 */
	private String title;
	private String srcPath;
	private int userId;
	private int segmentTotal;
	private String segmentFileName;
	private String date;
    private boolean isUpload=false;
    
	public boolean isUpload() {
		return isUpload;
	}

	public void setUpload(boolean isUpload) {
		this.isUpload = isUpload;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSrcPath() {
		return srcPath;
	}

	public void setSrcPath(String srcPath) {
		this.srcPath = srcPath;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public int getSegmentTotal() {
		return segmentTotal;
	}

	public void setSegmentTotal(int segmentTotal) {
		this.segmentTotal = segmentTotal;
	}

	public Video(String title, String srcPath, int userId, int segmentTotal,
			String segmentFileName) {
		super();
		this.title = title;
		this.srcPath = srcPath;
		this.userId = userId;
		this.segmentTotal = segmentTotal;
		this.segmentFileName = segmentFileName;
		java.text.SimpleDateFormat format1 = new java.text.SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
		this.date=format1.format(new Date());
		
	}

	public String getSegmentFileName() {
		return segmentFileName;
	}

	public String getDate() {
		return date;
	}

	public void setDate(String date) {
		this.date = date;
	}

	public void setSegmentFileName(String segmentFileName) {
		this.segmentFileName = segmentFileName;
	}

}
